package com.wendu.单例模式.改进懒汉式;

public class Instance {
    private static class Inner{
        private static Instance instance = new Instance();
    }
    private Instance(){
        System.out.println("改进后的懒汉式");
    }
    public static Instance getInstance(){
        return Inner.instance;
    }
}
